package com.diors.game.engine.arpg.scene.entity;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.diors.game.engine.arpg.npc.entity.NpcEntity;
import com.diors.game.engine.arpg.object.PlayerBase;

/**
 * 分线实体
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-23
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
public class MapEntity 
{
	/* 地图ID */
	private int id;
	
	/* 场景ID */
	private SceneEntity scene;
	
	/* 分屏实体 */
	private final Map<Integer, ScreenEntity> screans;
	
	/* 怪物列表 */
	private final Map<Long, NpcEntity> npcs;
	
	private final Map<Long, PlayerBase> players;
	
	public MapEntity ()
	{
		screans = new HashMap<Integer, ScreenEntity>();
		npcs 	= new ConcurrentHashMap<Long, NpcEntity>();
		players = new ConcurrentHashMap<Long, PlayerBase>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public SceneEntity getScene() {
		return scene;
	}

	public void setScene(SceneEntity scene) {
		this.scene = scene;
	}

	public Map<Integer, ScreenEntity> getScreans() {
		return screans;
	}

	public Map<Long, NpcEntity> getNpcs() {
		return npcs;
	}

	public Map<Long, PlayerBase> getPlayers() {
		return players;
	}

	
	
	
	
	
}
